.video-container {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--background-color);
    height: calc(100vh - 60px);
}

/* 左侧监控点列表 */
.camera-list {
    background: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-box {
    padding: 1rem;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.search-box i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.camera-groups {
    flex: 1;
    overflow-y: auto;
}

.group-header {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.camera-count {
    margin-left: auto;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.camera-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.2s;
}

.camera-item:hover {
    background: var(--hover-color);
}

.camera-item.active {
    background: var(--primary-light);
}

.camera-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status.online {
    background: var(--success-color);
}

.status.offline {
    background: var(--danger-color);
}

/* 主视频区域 */
.video-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-player {
    position: relative;
    flex: 1;
    background: black;
    border-radius: 12px;
    overflow: hidden;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.video-controls {
    display: flex;
    gap: 0.5rem;
}

.btn-control {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-control:hover {
    background: rgba(255,255,255,0.3);
}

/* 缩略图列表 */
.thumbnail-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem;
}

.thumbnail {
    position: relative;
    width: 160px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active {
    border: 2px solid var(--primary-color);
}

/* 右侧控制面板 */
.control-panel {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.panel-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.ptz-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ptz-pad {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.ptz-btn {
    position: absolute;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    cursor: pointer;
}

.ptz-btn:hover {
    background: var(--primary-color);
    color: white;
}

.ptz-btn.up { top: 0; left: 50%; transform: translateX(-50%); }
.ptz-btn.right { top: 50%; right: 0; transform: translateY(-50%); }
.ptz-btn.down { bottom: 0; left: 50%; transform: translateX(-50%); }
.ptz-btn.left { top: 50%; left: 0; transform: translateY(-50%); }
.ptz-btn.center { top: 50%; left: 50%; transform: translate(-50%, -50%); }

.zoom-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.preset-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.preset-btn {
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: none;
    cursor: pointer;
}

.preset-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.history-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.history-filter input,
.history-filter select {
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.history-list {
    overflow-y: auto;
    max-height: 300px;
}

/* 历史记录样式优化 */
.history-content {
    padding: 1rem;
}

.history-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.history-info {
    margin-top: 0.75rem;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.camera-name {
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95rem;
}

.capture-time {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.capture-note {
    color: #34495e;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 0.5rem;
}

/* 视频记录特殊样式 */
.video-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    color: #7f8c8d;
    font-size: 0.85rem;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.video-meta i {
    font-size: 0.9rem;
    color: #95a5a6;
}

/* 视频时长标签 */
.video-duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 预览图片悬停效果 */
.history-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.history-preview img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.history-preview:hover img {
    transform: scale(1.05);
}

/* 预览操作按钮 */
.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.history-preview:hover .preview-overlay {
    opacity: 1;
}

.preview-overlay .btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preview-overlay .btn-icon:hover {
    background: #3498db;
    color: white;
    transform: scale(1.1);
} 